package com.itheima.health.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.health.model.pojos.CheckGroup;
import com.itheima.health.model.pojos.CheckItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface JianchazuMapper {


    Integer zengjia(CheckGroup dto);

    void zengjia1(List<Map<String, Object>> records);


        @Select("SELECT * FROM t_checkgroup WHERE id=#{id}")
        CheckGroup huixian(Integer id);




    void insertCheckGroupCheckItemRelation(@Param("id") Integer id,@Param(("checkItemId")) Integer checkItemId);

    void update(CheckGroup dto);

    void deleteCheckGroupCheckItemRelation(@Param("id") Integer id);
}

